package com.example.modelDTO.converter;

import com.example.model.Checkin;
import com.example.modelDTO.CheckInDTO;
import org.springframework.stereotype.Component;

@Component
public class CheckInConverter implements BaseConverter<CheckInDTO, Checkin>{
    @Override
    public CheckInDTO sourceToTarget(Checkin var) {
        CheckInDTO checkInDTO = new CheckInDTO();
        checkInDTO.setContinuityDays(var.getContinuityDays());
        checkInDTO.setSeriesDays(var.getSeriesDays());
        checkInDTO.setLastSign(var.getLastSign());
        return checkInDTO;
    }
}
